<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%hot_keywords}}".
 *
 * @property string $keyword_id 编号，自增，主键
 * @property string $keyword 关键词
 * @property int $status 是否可用（1：已启用；2：已禁用）
 * @property int $ctime 创建时间
 * @property int $sort 排序
 */
class HotKeywords extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%hot_keywords}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['status', 'ctime', 'sort'], 'integer'],
            [['keyword'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'keyword_id' => Yii::t('app', 'Keyword ID'),
            'keyword' => Yii::t('app', 'Keyword'),
            'status' => Yii::t('app', 'Status'),
            'ctime' => Yii::t('app', 'Ctime'),
            'sort' => Yii::t('app', 'Sort'),
        ];
    }
}
